/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.AssertingTruth.Impl;

import za.ac.cput.AssertingTruth.Account;

/**
 *
 * @author Leo
 */
public class AccountImpl implements Account {

    private float balance;
    
    public AccountImpl(float initBalance) {
        balance= initBalance;
        
    }
    public AccountImpl() {
     
    }

    @Override
public void withdraw(float amount){
    balance = balance -amount;
    }
    @Override
public float getBalance(){
    return balance;    
    }

    
}
